package com.kui.demo.repeatsubmit;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("test")
public class TestController {

    @RepeatSubmit(10000)
    @GetMapping("currentUser")
    public ResultDTO getUserName(@RequestHeader("uid") String uid) {
        System.out.println("uid = " + uid);
        System.out.println("System.currentTimeMillis() = " + System.currentTimeMillis());
        return new ResultDTO(200, "", "Hanxh");
    }
}
